<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    // continue 用于跳出本次循环，继续下一次循环
    for(var i=1;i<=5;i++){
        if(i==3){
            continue;//只要遇见continue就退出本次循环 直接跳到i++
        }
        console.log('我正在吃第'+i+'个包子' );
    }

    var sum =0;
    for(var num=1;num<=100;num++){
        if(num%7==0){
            continue;
        }
        sum+=num;
    }
    console.log(sum);

    for(var j=1;j<=5;j++){
        if(j==3){
            break;
        }console.log('我正在吃第'+j+'个包子');
    }
    
</script>
<body>
    
</body>
</html>